# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo0921
# Description:  raise异常
# Author:       yzl
# Date:         2019-03-20
#-------------------------------------------------------------------------------

a = 1
b = 10

if b == 10:
    # 主动抛出异常
    raise Exception('a不能与10相加') # 程序同时终止了运行
else:
    a = a + b
    print(a)

print('111111')


